QT += core gui widgets network
CONFIG += c++11
TEMPLATE = app

RC_FILE = logo.rc

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES  -= UNICODE
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    a_active/activehandler.cpp \
    a_active/screenlook.cpp \
    codec/vpxencoder.cpp \
    codec/vpxdecoder.cpp \
    common/movedialog.cpp \
    common/networkhandler.cpp \
    a_passive/passivehandler.cpp \
    a_passive/xdisp_gdi.cpp \
    ui/btnchangepass.cpp \
    ui/btnsettings.cpp \
    ui/btnshowpasswd.cpp \
    ui/dialogchangepass.cpp \
    ui/dialogtemplate.cpp \
        main.cpp \
    common/deviceinfo.cpp \
    a_passive/graberclass.cpp \
    a_passive/inputsimulator.cpp \
    common/log4j.cpp \
        proto/Exchange.pb.cc \
        ui/mainwindow.cpp \
    ui_active/dialoginputpasswd.cpp \
    ui_active/dialogremoteconnecterror.cpp \
    vpx_component/ivfdec.cpp \
    vpx_component/tools_common.cpp \
    vpx_component/video_reader.cpp \


# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

HEADERS += \
    a_active/activehandler.h \
    a_active/screenlook.h \
    codec/vpxencoder.h \
    codec/vpxdecoder.h \
    common/movedialog.h \
    common/networkhandler.h \
    a_passive/passivehandler.h \
    a_passive/xdisp_gdi.h \
    ui/btnchangepass.h \
    ui/btnsettings.h \
    ui/btnshowpasswd.h \
    ui/dialogchangepass.h \
    ui/dialogtemplate.h \
    common/deviceinfo.h \
    a_passive/graberclass.h \
    a_passive/inputsimulator.h \
    common/log4j.h \
    proto/Exchange.pb.h \
    ui/mainwindow.h \
    ui_active/dialoginputpasswd.h \
    ui_active/dialogremoteconnecterror.h \
    vpx_component/ivfdec.h \
    vpx_component/tools_common.h \
    vpx_component/video_reader.h \
    vpx_component/vpx_config.h \

FORMS += \
    ui/changepassdialog.ui \
    ui/dialogtemplate.ui \
    ui/mainwindow.ui \
    ui_active/dialoginputpasswd.ui \
    ui_active/dialogremoteconnecterror.ui

RESOURCES += \
    resources/skin.qrc

win32: LIBS += -LD:/protobufLib/pro -llibprotobuf.dll
INCLUDEPATH += D:/protobufLib/pro
DEPENDPATH += D:/protobufLib/pro

win32: LIBS += -LD:/protobufLib/gzip/ -llibzlib.dll
INCLUDEPATH += D:/protobufLib/gzip
DEPENDPATH += D:/protobufLib/gzip


win32: LIBS += -LD:/protobufLib/libyuv/ -llibyuv.dll
INCLUDEPATH += D:/protobufLib/libyuv/include
DEPENDPATH += D:/protobufLib/libyuv/include

win32: LIBS += -LD:/protobufLib/libvpx/ -llibvpx
INCLUDEPATH += D:/protobufLib/libvpx/
DEPENDPATH += D:/protobufLib/libvpx/

win32: LIBS += -LD:\Qt\Qt5.9.0\Tools\mingw530_32\i686-w64-mingw32\lib -luser32
win32: LIBS += -LD:\Qt\Qt5.9.0\Tools\mingw530_32\i686-w64-mingw32\lib -llibgdi32
win32: LIBS += -LD:\Qt\Qt5.9.0\Tools\mingw530_32\i686-w64-mingw32\lib -lole32


